package own.jdq.dic.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import own.jdq.dic.entity.TDicAdrgList;
import own.jdq.dic.service.TDicAdrgListService;
import own.jdq.dic.util.Result;

import java.util.Map;

@RestController
@RequestMapping
public class DrgsInbedGroupController {
    @Autowired
    TDicAdrgListService tDicAdrgListService;
    @PostMapping("/inbedGroup")
    public Result inbedGroup(@RequestBody Map<String,Object> psnMedicalInfo){
        Map<String,String> groupInfo= tDicAdrgListService.inbedGruop(psnMedicalInfo);
        return  Result.ok(groupInfo);
    }
}
